home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks96 / FlyPaper.sit / Fly Paper / FlyPaper Source / App Sources / FlyPaperHeaders.pch < prev    next >
Text File  |  1996-06-22  |  5KB  |  202 lines

  1. #include "FlyPaperDefines.h"
  2.  
  3. /*
  4.  *    MacHeaders.c
  5.  *
  6.  *    Script to generate the 'MacHeaders<xxx>' precompiled header for Metrowerks C/C++.
  7.  *  Copyright © 1993 metrowerks inc.  All rights reserved.
  8.  */
  9.  
  10. /*
  11.  *    Required for c-style toolbox glue function: c2pstr and p2cstr
  12.  *    the inverse operation (pointers_in_A0) is performed at the end ...
  13.  */
  14.  
  15. #if !(powerc || __CFM68K__)
  16.  #pragma d0_pointers on
  17. #endif
  18.  
  19. /*
  20.  *    To allow the use of ToolBox calls which have now become obsolete on PowerPC, but
  21.  *    which are still needed for System 6 applications, we need to #define OBSOLETE.  If
  22.  *    your application will never use these calls then you can comment out this #define.
  23.  *    NB: This is only for 68K ...
  24.  */
  25.  
  26. #if !defined(powerc) && !defined(OBSOLETE)
  27.  #define OBSOLETE    1
  28. #endif
  29.  
  30. /*
  31.  *    Metrowerks-specific definitions
  32.  *
  33.  *    These definitions are commonly used but not in Apple's headers. We define
  34.  *    them in our precompiled header so we can use the Apple headers without modification.
  35.  */
  36.  
  37. #define PtoCstr        p2cstr
  38. #define CtoPstr        c2pstr
  39. #define PtoCString    p2cstr
  40. #define CtoPString    c2pstr
  41.  
  42. #define topLeft(r)    (((Point *) &(r))[0])
  43. #define botRight(r)    (((Point *) &(r))[1])
  44.  
  45. #define TRUE        true
  46. #define FALSE        false
  47.  
  48. #ifndef powerc
  49.  #include <MixedMode.h>
  50.  long GetCurrentA5(void)
  51.   ONEWORDINLINE(0x200D);
  52. #endif
  53.  
  54. /*
  55.  *    Apple #include files
  56.  *
  57.  *    Uncomment any additional #includes you want to add to MacHeaders.
  58.  */
  59.  
  60. //    #include <ADSP.h>
  61.     #include <AEObjects.h>
  62.     #include <AEPackObject.h>
  63.     #include <AERegistry.h>
  64.     #include <AEUserTermTypes.h>
  65. //    #include <AIFF.h>
  66.     #include <Aliases.h>
  67.     #include <AppleEvents.h>
  68. //    #include <AppleGuide.h>
  69.     #include <AppleScript.h>
  70. //    #include <AppleTalk.h>
  71. //    #include <ASDebugging.h>
  72. //    #include <ASRegistry.h>
  73. //    #include <Balloons.h>
  74. //    #include <CMApplication.h>
  75. //    #include <CMComponent.h>
  76. //    #include <CodeFragments.h>
  77.     #include <ColorPicker.h>
  78. //    #include <CommResources.h>
  79. //    #include <Components.h>
  80.     #include <ConditionalMacros.h>
  81. //    #include <Connections.h>
  82. //    #include <ConnectionTools.h>
  83.     #include <Controls.h>
  84. //    #include <ControlStrip.h>
  85. //    #include <CRMSerialDevices.h>
  86. //    #include <CTBUtilities.h>
  87. //    #include <CursorCtl.h>
  88. //    #include <CursorDevices.h>
  89. //    #include <DatabaseAccess.h>
  90. //    #include <DeskBus.h>
  91.     #include <Devices.h>
  92.     #include <Dialogs.h>
  93. //    #include <Dictionary.h>
  94. //    #include <DisAsmLookup.h>
  95. //    #include <Disassembler.h>
  96.     #include <DiskInit.h>
  97. //    #include <Disks.h>
  98. //    #include <Displays.h>
  99. //    #include <Drag.h>
  100. //    #include <Editions.h>
  101. //    #include <ENET.h>
  102. //    #include <EPPC.h>
  103. //    #include <ErrMgr.h>
  104.     #include <Errors.h>
  105.     #include <Events.h>
  106. //    #include <fenv.h>
  107.     #include <Files.h>
  108. //    #include <FileTransfers.h>
  109. //    #include <FileTransferTools.h>
  110.     #include <FileTypesAndCreators.h>
  111. //    #include <Finder.h>
  112. //    #include <FixMath.h>
  113.     #include <Folders.h>
  114.     #include <Fonts.h>
  115. //    #include <fp.h>
  116. //    #include <FragLoad.h>
  117. //    #include <FSM.h>
  118.     #include <Gestalt.h>
  119. //    #include <HyperXCmd.h>
  120. //    #include <Icons.h>
  121. //    #include <ImageCodec.h>
  122. //    #include <ImageCompression.h>
  123. //    #include <IntlResources.h>
  124. //    #include <Language.h>
  125.     #include <Lists.h>
  126.     #include <LowMem.h>
  127. //    #include <MachineExceptions.h>
  128. //    #include <MacTCP.h>
  129. //    #include <MediaHandlers.h>
  130.     #include <Memory.h>
  131.     #include <Menus.h>
  132. //    #include <MIDI.h>
  133.     #include <MixedMode.h>
  134. //    #include <Movies.h>
  135. //    #include <MoviesFormat.h>
  136. //    #include <Notification.h>
  137. //    #include <OSA.h>
  138. //    #include <OSAComp.h>
  139. //    #include <OSAGeneric.h>
  140.     #include <OSUtils.h>
  141.     #include <Packages.h>
  142. //    #include <Palettes.h>
  143. //    #include <Picker.h>
  144. //    #include <PictUtil.h>
  145. //    #include <PictUtils.h>
  146.     #include <PLStringFuncs.h>
  147. //    #include <Power.h>
  148. //    #include <PPCToolbox.h>
  149.     #include <Printing.h>
  150.     #include <Processes.h>
  151. //    #include <QDOffscreen.h>
  152.     #include <Quickdraw.h>
  153. //    #include <QuickdrawText.h>
  154. //    #include <QuickTimeComponents.h>
  155.     #include <Resources.h>
  156. //    #include <Retrace.h>
  157. //    #include <ROMDefs.h>
  158. #ifndef powerc
  159. //    #include <SANE.h>
  160. #endif
  161.     #include <Scrap.h>
  162. //    #include <Script.h>
  163. //    #include <SCSI.h>
  164.     #include <SegLoad.h>
  165. //    #include <Serial.h>
  166. //    #include <ShutDown.h>
  167. //    #include <Slots.h>
  168. //    #include <Sound.h>
  169. //    #include <SoundComponents.h>
  170. //    #include <SoundInput.h>
  171. //    #include <Speech.h>
  172.     #include <StandardFile.h>
  173. //    #include <Start.h>
  174.     #include <Strings.h>
  175. //    #include <Terminals.h>
  176. //    #include <TerminalTools.h>
  177.     #include <TextEdit.h>
  178. //    #include <TextServices.h>
  179.     #include <TextUtils.h>
  180. //    #include <Threads.h>
  181. //    #include <Timer.h>
  182.     #include <ToolUtils.h>
  183. //    #include <Translation.h>
  184. //    #include <TranslationExtensions.h>
  185.     #include <Traps.h>
  186. //    #include <TSMTE.h>
  187.     #include <Types.h>
  188. //    #include <Unmangler.h>
  189. //    #include <Video.h>
  190.     #include <Windows.h>
  191. //    #include <WorldScript.h>
  192.  
  193.  
  194. /*
  195.  *    required for c-style toolbox glue function: c2pstr and p2cstr
  196.  *    (match the inverse operation at the start of the file ...
  197.  */
  198.  
  199. #if !(powerc || __CFM68K__)
  200.  #pragma d0_pointers reset
  201. #endif
  202.